package com.samuel.learning.base.interview;

public class StringDemo {


    public static void main(String[] args) {
        String A = "123";
        String B = new String("123");
        System.out.println(A.equals(B));
        System.out.println(A == B);

    }
}
